//
//  bangbangfabuViewController.m
//  wuyeviewcon
//
//  Created by dsdf on 16/1/28.
//  Copyright © 2016年 joey. All rights reserved.
//

#import "bangbangfabuViewController.h"

@interface bangbangfabuViewController ()

@end

@implementation bangbangfabuViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    
    
    UIButton *checkbox1 = [UIButton buttonWithType:UIButtonTypeCustom];
    checkbox1.frame=CGRectMake(0,64,122,45);
    
    [checkbox1 setImage:[UIImage imageNamed:@"我的主贴1@2x.png"] forState:UIControlStateNormal];
    [checkbox1 setImage:[UIImage imageNamed:@"我的主贴@2x.png"] forState:UIControlStateSelected];
    [checkbox1 addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:checkbox1];
    
    
    
    
    UIButton *checkbox2 = [UIButton buttonWithType:UIButtonTypeCustom];
    checkbox2.frame=CGRectMake(123,64,122,45);
    
    [checkbox2 setImage:[UIImage imageNamed:@"我的回复@2x.png"] forState:UIControlStateNormal];
    [checkbox2 setImage:[UIImage imageNamed:@"我的回复1@2x.png"] forState:UIControlStateSelected];
    [checkbox2 addTarget:self action:@selector(checkboxClick1:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:checkbox2];
    
    
    
    UIButton *checkbox3 = [UIButton buttonWithType:UIButtonTypeCustom];
    
    checkbox3.frame=CGRectMake(253,64,122,45);
    
    [checkbox3 setImage:[UIImage imageNamed:@"与我相关@2x.png"] forState:UIControlStateNormal];
    [checkbox3 setImage:[UIImage imageNamed:@"与我相关1@2x.png"] forState:UIControlStateSelected];
    [checkbox3 addTarget:self action:@selector(checkboxClick2:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:checkbox3];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)checkboxClick:(UIButton *)btn
{
    btn.selected = !btn.selected;
    
}

-(void)checkboxClick1:(UIButton *)btn
{
    btn.selected = !btn.selected;
    
}



-(void)checkboxClick2:(UIButton *)btn
{
    btn.selected = !btn.selected;
    
    
}








@end
